home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
star-1_0.tar
/
chiptest.star
< prev
next >
Wrap
Text File
|
1991-03-22
|
575b
|
28 lines
ld v0, x'ff ; Initialize the delay timer
ld delay, v0
loop: ld i, charbuf ; Place to store the BCD
ld v0, delay ; Get current delay value
ld bcd, v0 ; Convert it to BCD
ld v2, @i ; Pick up the digits
ld v3, 0 ; Coords for 100s digit
ld v4, 0
char v0 ; Point at the character
show v3, v4, 5 ; Display it
ld v3, 6 ; X coord for 10s digit
char v1 ; Point at the character
show v3, v4, 5 ; Display it
ld v3, 11 ; X coord for 1s digit
char v2 ; Point at the character
show v3, v4, 5 ; Display it
jump loop ; Keep going forever
charbuf:
byte 0,0,0
end